# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'Activity.show_collection_menu'
        db.add_column('activities_activity', 'show_collection_menu',
                      self.gf('django.db.models.fields.BooleanField')(default=True),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'Activity.show_collection_menu'
        db.delete_column('activities_activity', 'show_collection_menu')


    models = {
        'activities.activity': {
            'Meta': {'unique_together': "(('title', 'category', 'course'),)", 'object_name': 'Activity'},
            'activity_results_type': ('django.db.models.fields.CharField', [], {'default': "'PRIVATE'", 'max_length': '10'}),
            'activity_type': ('django.db.models.fields.CharField', [], {'default': "'NORMAL'", 'max_length': '10'}),
            'allow_html': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'allow_late_submissions': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'category': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'category_slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'blank': 'True'}),
            'content': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'course': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
            'display_title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_public': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_shared': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'last_modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'main_menu': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'order_number': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
            'randomize_questions': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'show_collection_menu': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'start_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2012, 8, 18, 0, 0)', 'null': 'True', 'blank': 'True'}),
            'submissions_allowed': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'title_slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'blank': 'True'}),
            'total_points': ('django.db.models.fields.FloatField', [], {'default': '10.0', 'blank': 'True'}),
            'weight': ('django.db.models.fields.FloatField', [], {'default': '1.0'})
        },
        'activities.activityautograderesponse': {
            'Meta': {'object_name': 'ActivityAutogradeResponse'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'points': ('django.db.models.fields.FloatField', [], {'default': '0.0'}),
            'question': ('django.db.models.fields.related.ForeignKey', [], {'default': "''", 'related_name': "'autograde_responses'", 'to': "orm['activities.ActivityQuestion']"}),
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'})
        },
        'activities.activitycontentsnippet': {
            'Meta': {'unique_together': "(['title', 'description'],)", 'object_name': 'ActivityContentSnippet'},
            'category': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'content': ('django.db.models.fields.TextField', [], {}),
            'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        },
        'activities.activityquestion': {
            'Meta': {'object_name': 'ActivityQuestion', '_ormbases': ['gradebook.GradingSection']},
            'allowable_extensions': ('django.db.models.fields.CharField', [], {'default': "'.pdf;.doc;.docx;.txt;.rtf'", 'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'choices': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
            'end_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'gradingsection_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSection']", 'unique': 'True', 'primary_key': 'True'}),
            'question': ('django.db.models.fields.TextField', [], {'default': "''", 'null': 'True', 'blank': 'True'}),
            'start_date': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'type': ('django.db.models.fields.CharField', [], {'default': "'BOOL-TF'", 'max_length': '15'})
        },
        'activities.activityresponseboolean': {
            'Meta': {'object_name': 'ActivityResponseBoolean'},
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'gradingsectiongrade_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSectionGrade']", 'unique': 'True', 'primary_key': 'True'}),
            'response': ('django.db.models.fields.NullBooleanField', [], {'null': 'True', 'blank': 'True'}),
            'submission_number': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'blank': 'True'})
        },
        'activities.activityresponsefileupload': {
            'Meta': {'object_name': 'ActivityResponseFileUpload'},
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'gradingsectiongrade_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSectionGrade']", 'unique': 'True', 'primary_key': 'True'}),
            'response': ('django.db.models.fields.files.FileField', [], {'max_length': '100', 'null': 'True', 'blank': 'True'}),
            'submission_number': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'blank': 'True'})
        },
        'activities.activityresponsefloat': {
            'Meta': {'object_name': 'ActivityResponseFloat'},
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'gradingsectiongrade_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSectionGrade']", 'unique': 'True', 'primary_key': 'True'}),
            'response': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
            'submission_number': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'blank': 'True'})
        },
        'activities.activityresponseinteger': {
            'Meta': {'object_name': 'ActivityResponseInteger'},
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'gradingsectiongrade_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSectionGrade']", 'unique': 'True', 'primary_key': 'True'}),
            'response': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}),
            'submission_number': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'blank': 'True'})
        },
        'activities.activityresponselonganswer': {
            'Meta': {'object_name': 'ActivityResponseLongAnswer'},
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'gradingsectiongrade_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSectionGrade']", 'unique': 'True', 'primary_key': 'True'}),
            'response': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'submission_number': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'blank': 'True'})
        },
        'activities.activityresponsemultiplechoice': {
            'Meta': {'object_name': 'ActivityResponseMultipleChoice'},
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'gradingsectiongrade_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSectionGrade']", 'unique': 'True', 'primary_key': 'True'}),
            'response': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
            'submission_number': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'blank': 'True'})
        },
        'activities.activityresponseshortanswer': {
            'Meta': {'object_name': 'ActivityResponseShortAnswer'},
            'date': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'gradingsectiongrade_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['gradebook.GradingSectionGrade']", 'unique': 'True', 'primary_key': 'True'}),
            'response': ('django.db.models.fields.CharField', [], {'max_length': '512', 'null': 'True', 'blank': 'True'}),
            'submission_number': ('django.db.models.fields.PositiveIntegerField', [], {'default': '1', 'blank': 'True'})
        },
        'activities.activityviewed': {
            'Meta': {'unique_together': "(('activity', 'user'),)", 'object_name': 'ActivityViewed'},
            'activity': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['activities.Activity']"}),
            'completed': ('django.db.models.fields.DateTimeField', [], {'null': 'True', 'blank': 'True'}),
            'first_viewed': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'last_viewed': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
            'times_viewed': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
        },
        'activities.subactivity': {
            'Meta': {'object_name': 'Subactivity'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'order_number': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'parent_activity': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'subactivities'", 'to': "orm['activities.Activity']"}),
            'subactivity': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'parent_activities'", 'to': "orm['activities.Activity']"})
        },
        'auth.group': {
            'Meta': {'object_name': 'Group'},
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
            'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
        },
        'auth.permission': {
            'Meta': {'ordering': "('content_type__app_label', 'content_type__model', 'codename')", 'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
            'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        },
        'auth.user': {
            'Meta': {'object_name': 'User'},
            'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
            'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
            'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
            'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
            'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
            'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
            'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
        },
        'contenttypes.contenttype': {
            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'gradebook.gradingsection': {
            'Meta': {'object_name': 'GradingSection'},
            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
            'section_number': ('django.db.models.fields.PositiveIntegerField', [], {'blank': 'True'}),
            'title': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
            'total_points': ('django.db.models.fields.FloatField', [], {'default': '10.0'})
        },
        'gradebook.gradingsectiongrade': {
            'Meta': {'object_name': 'GradingSectionGrade'},
            'excused': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'notes': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
            'points': ('django.db.models.fields.FloatField', [], {'default': '0.0'}),
            'section': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'grades'", 'to': "orm['gradebook.GradingSection']"}),
            'user': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['auth.User']"})
        }
    }

    complete_apps = ['activities']